package com.cake.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.cake.entity.base.BaseEntity;

public class XxRefunds extends BaseEntity {
    /**
     * 退款单主键
     * 表字段 : xx_refunds.id
     */
    private Long id;

    /**
     * 退款编号
     * 表字段 : xx_refunds.sn
     */
    private String sn;

    /**
     * 退款单退款方式
     * 表字段 : xx_refunds.method
     */
    private Integer method;

    /**
     * 退款单支付方式
     * 表字段 : xx_refunds.payment_method
     */
    private String paymentMethod;

    /**
     * 退款银行
     * 表字段 : xx_refunds.bank
     */
    private String bank;

    /**
     * 退款账号
     * 表字段 : xx_refunds.account
     */
    private String account;

    /**
     * 退款金额
     * 表字段 : xx_refunds.amount
     */
    private BigDecimal amount;

    /**
     * 收款人姓名
     * 表字段 : xx_refunds.payee
     */
    private String payee;

    /**
     * 操作员姓名
     * 表字段 : xx_refunds.operator
     */
    private String operator;

    /**
     * 备注
     * 表字段 : xx_refunds.memo
     */
    private String memo;

    /**
     * 订单主键
     * 表字段 : xx_refunds.order
     */
    private Long order;

    /**
     * 个人充值订单主键
     * 表字段 : xx_refunds.balance_order
     */
    private Long balanceOrder;

    /**
     * 门店主键
     * 表字段 : xx_refunds.shop
     */
    private Long shop;

    /**
     * 退款单创建时间
     * 表字段 : xx_refunds.create_date
     */
    private Date createDate;

    /**
     * 退款单最新修改时间
     * 表字段 : xx_refunds.modify_date
     */
    private Date modifyDate;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table xx_refunds
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn == null ? null : sn.trim();
    }

    public Integer getMethod() {
        return method;
    }

    public void setMethod(Integer method) {
        this.method = method;
    }

    public String getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod == null ? null : paymentMethod.trim();
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank == null ? null : bank.trim();
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getPayee() {
        return payee;
    }

    public void setPayee(String payee) {
        this.payee = payee == null ? null : payee.trim();
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator == null ? null : operator.trim();
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

    public Long getOrder() {
        return order;
    }

    public void setOrder(Long order) {
        this.order = order;
    }

    public Long getBalanceOrder() {
        return balanceOrder;
    }

    public void setBalanceOrder(Long balanceOrder) {
        this.balanceOrder = balanceOrder;
    }

    public Long getShop() {
        return shop;
    }

    public void setShop(Long shop) {
        this.shop = shop;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", sn=").append(sn);
        sb.append(", method=").append(method);
        sb.append(", paymentMethod=").append(paymentMethod);
        sb.append(", bank=").append(bank);
        sb.append(", account=").append(account);
        sb.append(", amount=").append(amount);
        sb.append(", payee=").append(payee);
        sb.append(", operator=").append(operator);
        sb.append(", memo=").append(memo);
        sb.append(", order=").append(order);
        sb.append(", balanceOrder=").append(balanceOrder);
        sb.append(", shop=").append(shop);
        sb.append(", createDate=").append(createDate);
        sb.append(", modifyDate=").append(modifyDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}